@import './base.less';
// 导入基础样式

// 导航栏
nav {
    height: 40px;
    width: 100%;
    background-color: #333333;
    font-size: 12px;

    .w {
        display: flex;
        justify-content: space-between;

        ul {
            width: 800px;
            height: 40px;
            display: flex;

            text-align: center;
            // 这里用主轴平均分要被flex:1；好
            justify-content: space-between;
            align-items: center;

            li {
                padding-right: 8px;
                border-right: 1px solid #3b4242;

                a {
                    color: #ccc;
                }

                &:nth-child(13) {
                    border-right: 0;
                }

                &:nth-child(12) {
                    position: relative;

                    span {
                        position: absolute;
                        // 制作三角形
                        width: 10px;
                        height: 10px;
                        transform: rotate(45deg);
                        bottom: -17px;
                        right: 25px;
                        z-index: 199;
                        opacity: 0;
                        overflow: hidden;
                        background-color: #fff;
                    }

                    .qr {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        width: 100px;
                        height: 100px;
                        top: -72px;
                        right: -20px;
                        opacity: 0;
                        z-index: 2;
                        position: absolute;
                        transition: all .7s;

                        .pic {
                            width: 50px;
                            height: 50px;
                            margin-top: 20px;
                        }

                        p {
                            font-size: 14px;
                        }

                    }

                    // 鼠标经过时二维码出现
                    &:hover .qr {
                        opacity: 1;
                        background-color: #fff;
                        box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
                        transform: translateY(100px);
                        color: #333333;

                    }

                    &:hover span {
                        opacity: 1;

                    }
                }

                // 鼠标经过li时里面的a变成白色
                &:hover a {
                    color: #fff;
                }

            }

        }

        .right {
            ul {
                width: 142px;

                li {
                    &:nth-child(3) {
                        border: 0;
                    }
                }
            }

        }

        .right2 {
            text-align: center;
            // 这里不能直接写40会超出
            line-height: 38px;
            width: 120px;
            position: relative;
            background-color: #424242;

            .icon-gouwuchekong {
                color: #ac9e9e;
            }

            a {
                color: #ccc;
            }

            &:hover a,
            &:hover i {
                color: #ff6a00;
            }

            .shopping {
                width: 250px;
                height: 80px;
                position: absolute;
                top: 0;
                right: 0;
                z-index: 999;

                margin-top: -50px;
                line-height: 80px;
                color: #ac9e9e;
                // background-color: pink;
                opacity: 0;
                // overflow: hidden;

                transition: all .8s;


            }

            &:hover .shopping {
                opacity: 1;

                background-color: #fff;
                box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
                transform: translateY(90px);

            }
        }
    }


}

// 头部导航栏
header {


    .w {
        height: 100px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;

        .pic {
            width: 56px;
            height: 56px;
        }



        ul {
            width: 600px;
            display: flex;
            justify-content: space-between;


            li {

                &:hover a {
                    color: #ff6a00;
                }

                a {
                    color: #333333;

                    &:hover .phone_list {
                        overflow: visible;
                        transform: translateY(20px);
                        background-color: #fff;
                        color: #333333;

                    }

                    .phone_list {
                        position: relative;
                        background-color: #fff;
                        overflow: hidden;

                        transition: all .6s;

                        .list {
                            position: absolute;
                            top: 40px;
                            left: -200px;
                            width: 1226px;
                            height: 250px;
                            border-top: 1px solid #ccc;
                            box-shadow: 1px 1px 5px #424242;
                            display: flex;

                            li {
                                width: 200px;
                                height: 200px;
                                font-size: 12px;
                                display: flex;
                                margin-top: 20px;
                                flex-direction: column;
                                justify-content: center;
                                align-items: center;
                                border-right: 1px solid rgb(209, 206, 206);

                                &:nth-child(6) {
                                    border: 0;
                                }

                                .pic {
                                    margin: 10px;
                                    width: 150px;
                                    height: 120px;
                                }

                                p {
                                    margin-top: 5px;
                                    color: #ff6a00;

                                }
                            }
                        }
                    }
                }
            }


        }

        .box {
            width: 214px;
            display: flex;
            justify-content: space-between;

            &:hover input,
            &:hover a {
                border: 1px solid #ff6a00;
            }

            input {
                width: 165px;
                height: 50px;
                border: 1px solid #ac9e9e;

                option {
                    height: 20px;
                }

                &:hover {
                    border: 1px slo #333333;
                }

            }


            .search {
                width: 50px;
                height: 50px;
                margin-left: -137px;
                border: 1px solid #ac9e9e;



                &:hover {
                    background-color: #ff6a00;
                }

                &:hover .icon-sousuo {
                    color: #fff;
                }

            }

            .icon-sousuo {
                font-size: 30px;
                line-height: 50px;
                padding-left: 10px;

            }
        }
    }
}

// 通栏盒子
.beaner {
    height: 460px;
    display: flex;
    position: relative;
    background: url(../images/mi.webp) no-repeat;

    .left {
        width: 234px;
        background-color: rgba(165, 163, 163, .9);

        ul {
            height: 470px;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;

            li {
                line-height: 40px;
                display: flex;
                height: 40px;
                padding-right: 10px;
                justify-content: space-between;
                padding-left: 20px;
                color: #fff;
                font-size: 14px;

                a {
                    color: #fff;
                }

                &:hover {
                    background-color: #ff6a00;

                }

                &::after {
                    content: '>';
                    font-size: 20px;
                    color: #fff;

                }
            }
        }



    }

    .left2 {
        width: 44px;
        height: 68px;
        position: absolute;
        top: 50%;
        left: 240px;
        background: url(../images/icon-slides.png) no-repeat -83px 0;
        background-size: 166px auto;

        &:hover {
            background: url(../images/icon-slides.png) no-repeat 2px 1px;
            background-size: 166px auto;
        }

    }

    .right {
        width: 44px;
        height: 68px;
        position: absolute;
        top: 50%;
        right: 0;
        background: url(../images/icon-slides.png) no-repeat -192px 0;
        background-size: 166px auto;

        &:hover {
            background: url(../images/icon-slides.png) no-repeat -41px 0;
            background-size: 166px auto;
        }
    }

    .bottom {
        position: absolute;
        bottom: 10px;
        right: 30px;

        ul {
            width: 100px;
            height: 15px;
            display: flex;
            justify-content: space-evenly;

            li {
                width: 10px;
                height: 10px;
                background-color: #ac9e9e;
                border-radius: 50%;

                &:hover {
                    background-color: #fff;
                }


            }
        }

    }
}

// 服务导航
.service_nav {
    height: 200px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #fff;
    display: flex;


    .service {
        height: 160px;
        width: 235px;
        background-color: #5f5750;

        ul {
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;

            li a {
                width: 76px;
                height: 80px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                color: #ccc;

                .pic {
                    width: 24px;
                    height: 24px;
                    margin-bottom: 3px;
                }

                span {
                    font-size: 12px;
                }
            }
        }
    }

    .iphone {
        flex: 1;
        display: flex;
        justify-content: space-between;
        background-color: #fff;

        .pic {
            width: 316px;
            height: 160px;
            margin-right: 15px;

            &:nth-child(3) {
                margin: 0;
            }
        }
    }
}

// 小米图片
.mi_pic {
    height: 120px;
}

// 小米手机导航
.mi_phone_nav {
    height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    h2 {
        a {
            color: #333333;
            font-weight: 300;
        }
    }

    .cheack {
        padding: 20px;

        a {
            color: #333333;
        }

        i {

            width: 10px;
            height: 10px;
            background-color: #b0b0b0;
            border-radius: 50%;
            color: #fff;
        }
    }


}

// 小米手机列表

.mi_phone {
    height: 614px;
    display: flex;
    background-color: #f5f5f5;

    .mi_left {
        width: 234px;
        height: 560px;
        background-color: #b4aeae;

        &:hover {
            box-shadow: -1px -1px 10px #ccc;
            transform: translateY(-2px)
        }
    }

    .mi_right {
        flex: 1;
        margin-top: 10px;

        ul {
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;

            li {
                margin: 10px 5px;
                padding-top: 20px;
                padding-bottom: 20;
                background-color: #fff;
                transition: all .3s;

                &:hover {
                    box-shadow: -1px -1px 10px #ccc;
                    transform: translateY(-2px)
                }

                a {
                    width: 234px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    .pic {
                        width: 160px;
                        height: 160px;
                    }

                    span {
                        &:nth-of-type(1) {
                            font-size: 14px;
                        }

                        &:nth-of-type(2) {
                            height: 30px;
                            font-size: 12px;
                            padding: 10px;
                            color: #ccc;
                            /*超出的部分隐藏*/
                            overflow: hidden;
                            /*文字用省略号替代超出的部分*/
                            text-overflow: ellipsis;
                            /* 弹性伸缩盒子模型显示 */
                            display: -webkit-box;
                            /* 限制在一个块元素显示的文本的行数 */
                            -webkit-line-clamp: 1;
                            /* 设置或检索伸缩盒对象的子元素的排列方式  vertical垂直 */
                            -webkit-box-orient: vertical;
                        }
                    }

                    p {
                        font-size: 14px;
                        color: #ff6702;
                        margin: 0 10px 14px;
                    }

                }
            }
        }
    }
}

// 视频区域
.vedio {
    margin-bottom: 30px;

    ul {
        display: flex;
        justify-content: space-between;

        li {
            width: 294px;
            height: 180px;

            &:hover {
                box-shadow: 2px 2px 5px #8e8a8a;
                transform: translateY(-2px)
            }

        }
    }
}

// 售后服务

.mi_service {
    background-color: #fff;

    .w {
        ul {
            height: 80px;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            border-bottom: 1px solid #ccc;

            li {
                height: 20px;
                padding: 0 50px;
                border-left: 1px solid #ccc;

                &:nth-child(1) {
                    border: 0;
                }

                a {
                    .icon-shoucang {
                        font-size: 24px;
                    }
                }

            }
        }
    }

}


.guide {
    height: 400px;
    background-color: #fff;

    a {
        font-size: 12px;
        color: gray;

        &:hover {
            color: #ff6a00;
        }
    }

    .w {

        display: flex;
        padding: 50px 0;
        justify-content: space-between;


        dl {
            padding-left: 30px;


            dt {
                font-size: 14px;
                margin-bottom: 26px;
            }
        }

        .txt {
            width: 250px;
            height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;

            p {
                &:nth-child(1) {
                    color: #ff6a00;
                    font-size: 22px;
                }

                &:nth-child(2) {
                    margin: 5px 0;
                    font-size: 12px;
                    color: gray;
                }
            }

            a {
                width: 120px;
                height: 30px;
                color: #ff6a00;
                text-align: center;
                line-height: 30px;
                border: 1px solid #ff6a00;
            }
        }
    }


}

// 底部信息栏

.info {
    background-color: #fafafa;
    height: 165px;

    .w {
        display: flex;

        .logo {
            width: 56px;
            height: 56px;
            margin-right: 20px;
        }

        .txt {
            font-size: 12px;

            ul {
                display: flex;

                li a {
                    &:hover {
                        color: #ff6a00;
                    }
                }
            }

            p {
                color: gray;
            }

            .box_img {
                width: 300px;
                height: 30px;
                display: flex;
                .footer_pic {
                    width: 85px;
                    height: 28px;
                }
            }
        }



    }
}
.aa{
    height: 19px;
    font-size: 20px;
    text-align: center;
    color: #ccc;

}